package com.channel.temperature.collect.ui.activity

import android.os.Bundle
import com.channel.temperature.collect.app.base.BaseActivity
import com.channel.temperature.collect.app.ext.initBack
import com.channel.temperature.collect.databinding.ActivityDocWordBinding
import com.channel.temperature.collect.ui.viewmodel.PdfModel
import me.hgj.mvvmhelper.ext.setOnclickNoRepeat


class DocWordActivity : BaseActivity<PdfModel, ActivityDocWordBinding>() {
    override fun initView(savedInstanceState: Bundle?) {
        mToolbar.initBack("操作使用说明") {
            finish()
        }
//        mBind.webView.settings.layoutAlgorithm = WebSettings.LayoutAlgorithm.SINGLE_COLUMN
//        mBind.webView.settings.loadWithOverviewMode = true
//        mBind.webView.settings.setSupportZoom(false)
//        mBind.webView.loadUrl("file:///android_asset/app_doc1.htm")


        var filePath = intent.getStringExtra("filePath").toString()
        mBind.pdfView.fromAsset("app_doc1.pdf").load()
//        mBind.pdfView.fromFile(File(filePath)).load()
    }

    /**
     * 请求成功
     */
    override fun onRequestSuccess() {
    }

    override fun onBindViewClick() {
        setOnclickNoRepeat(
        ) {
            when (it) {
            }
        }
    }


}